home *** CD-ROM | disk | FTP | other *** search
- #include<Serial.h>
-
- main()
- {
- short aOutRefNum, aInRefNum, bufferCnt, len;
- char *send;
- SysPPtr pSysParms;
-
- pSysParms = GetSysPPtr ( );
- if (pSysParms->aTalkA)
- {
- aOutRefNum = -7;
- aInRefNum = -6;
-
- len = 3;
-
- if (SerSetBuf( aOutRefNum, send, 3 ))
- { SysBeep( 0 );
- return;
- }
-
- strcpy ( send , "+++" );
-
- if (FSWrite( aOutRefNum, &len, send))
- { SysBeep( 0 );
- return;
- }
- len = 5;
- if (SerSetBuf( aOutRefNum, send, len ))
- { SysBeep( 0 );
- return;
- }
-
- strcpy ( send , "ATH\r" );
-
- if (FSWrite( aOutRefNum, &len, send))
- { SysBeep( 0 );
- return;
- }
-
- RAMSDClose(sPortA);
- return;
- }
- return;
- }